package com.itheima.job4;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        Map<String,Integer> employs = new HashMap<>();
        employs.put("柳岩",2100);
        employs.put("张亮",1700);
        employs.put("诸葛亮",1800);
        employs.put("灭绝师太",2600);
        employs.put("东方不败",3800);
        employs.put("柳岩",2100+300);
        Set<Map.Entry<String, Integer>> entries = employs.entrySet();
        entries.forEach(entry-> System.out.println(entry.getKey()+" "+entry.getValue()));
    }
}
